package idea.mybatis.db.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("tl_main")
public class TlMain extends Model<TlMain> {

    private static final long serialVersionUID = 1L;

	@TableId(value="main_id", type= IdType.AUTO)
	private Integer mainId;
	@TableField("main_name")
	private String mainName;
	@TableField("main_date")
	private Date mainDate;
	@TableField("main_desc")
	private String mainDesc;


	public Integer getMainId() {
		return mainId;
	}

	public TlMain setMainId(Integer mainId) {
		this.mainId = mainId;
		return this;
	}

	public String getMainName() {
		return mainName;
	}

	public TlMain setMainName(String mainName) {
		this.mainName = mainName;
		return this;
	}

	public Date getMainDate() {
		return mainDate;
	}

	public TlMain setMainDate(Date mainDate) {
		this.mainDate = mainDate;
		return this;
	}

	public String getMainDesc() {
		return mainDesc;
	}

	public TlMain setMainDesc(String mainDesc) {
		this.mainDesc = mainDesc;
		return this;
	}

	public static final String MAIN_ID = "main_id";

	public static final String MAIN_NAME = "main_name";

	public static final String MAIN_DATE = "main_date";

	public static final String MAIN_DESC = "main_desc";

	@Override
	protected Serializable pkVal() {
		return this.mainId;
	}

	@Override
	public String toString() {
		return "TlMain{" +
			"mainId=" + mainId +
			", mainName=" + mainName +
			", mainDate=" + mainDate +
			", mainDesc=" + mainDesc +
			"}";
	}
}
